跳转至

NET_SDK_SetDeviceIP

接口定义

1
2
3
4
5
6
7
8
BOOL NET_SDK_SetDeviceIP(
    const char* mac,
    const char* password,
    const char* ipAddr,
    const char* netmask,
    const char* gateway,
    const char* DNSServer1,
    const char* DNSServer2);
1
2
3
4
5
6
7
8
public static extern Boolean NET_SDK_SetDeviceIP(
    string pMac,
    string password,
    string ipAddr,
    string netmask,
    string gateway,
    string DNSServer1,
    string DNSServer2);

功能描述

设置设备IP地址。

参数说明

参数 类型 说明
macin const char* 设备的MAC地址。
passwordin const char* 设备的管理员密码
ipAddrin const char* 要设置的IP地址
netmaskin const char* 要设置的子网掩码
gatewayin const char* 要设置的网关
DNSServer1in const char* 要设置的首选DNS服务器
DNSServer2in const char* 要设置的备选DNS服务器

返回值

  • 类型:BOOL

  • 说明:成功返回TRUE,失败返回FALSE。

备注

错误码